//
//  CYOlineScanVC.h
//  CaiYun
//
//  Created by 今日信息科技 on 2017/9/25.
//  Copyright © 2017年 今日信息科技. All rights reserved.
//

#import "CYView.h"
#import "CYRechergeModel.h"
#import "CYThirdXMLModel.h"
typedef NS_ENUM(NSInteger, OnlineScanEvent) {
    subMitForOnlineScanEvent = 11,   //提交
    saveForOnlineScanEvent,       //保存
    jumpForOnlineScanEvent,       //跳转
};

typedef void(^olineScan) (OnlineScanEvent event,id data);
@protocol CYOnlineScanDelegate <NSObject>
@required
/**
 *@pragma 提交充值
 */
- (id)httpsWithMoney:(NSString *)money;

@end
@interface CYOnlineScanVC : CYView
@property (nonatomic, strong) CYRechergeModel *model;
@property (nonatomic, copy) NSString *urlScheme;//应用内跳转APP
@property (nonatomic, weak) id<CYOnlineScanDelegate>delegate;
- (instancetype)initWithTitle:(NSString *)title block:(olineScan)block;
- (void)showQRCodeWithXMLModel:(CYThirdXMLModel *)xmlModel;
@end
